package cn.jbolt.ai.core.chain.node.flow.varset;

import cn.jbolt.ai.core.chain.node.action.dbquery.DbQueryConfig;
import cn.jbolt.util.JSONUtil;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;

/**
 * 全局变量设置节点
 */
public class VarSetConfig {


    private ArrayNode vars;




    public static VarSetConfig from(JsonNode jsonNode) {
        if (jsonNode == null) {
            return new VarSetConfig();
        }
        return JSONUtil.toObject(jsonNode, VarSetConfig.class);
    }

    public ArrayNode getVars() {
        return vars;
    }

    public void setVars(ArrayNode vars) {
        this.vars = vars;
    }
}
